package com.gagakuai.demo.function;

import org.junit.Test;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-13 13:00
 */
public class UseUserInter {


    public void doSayHello(String username, UserInterface userInterfaces) {

        System.out.println(userInterfaces.getUserName(username));
    }

    @Test
    public void test() {
        UseUserInter useUserInter = new UseUserInter();

        useUserInter.doSayHello("houhbong", userName -> userName+"12323");
    }
}